package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.domain.ScenicDetail;
import cn.wolfcode.wolf2w.service.IScenicDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/scenicDetail")
public class ScenicDetailController {

    @Autowired
    private IScenicDetailService scenicDetailService;

    @GetMapping("/detail")
    public Object list(String id){

        ScenicDetail scenicDetail = scenicDetailService.find(id);
        System.out.println(scenicDetail);

        return scenicDetail;
    }


}
